laravel debug

74

laravel debugbar -

composer require barryvdh/laravel-debugbar --dev
  
// config/app.php
// ServiceProviders
Barryvdh\Debugbar\ServiceProvider::class,
// Facades
'Debugbar' => Barryvdh\Debugbar\Facade::class,


php artisan vendor:publish --provider="Barryvdh\Debugbar\ServiceProvider"

debug bar laravel print array -

Debugbar::info($object);
Debugbar::error('Error!');
Debugbar::warning('Watch out…');
Debugbar::addMessage('Another message', 'mylabel');

laravel debugging -

'debug' => env('APP_DEBUG', false),

debugger in laravel -

Barryvdh\Debugbar\ServiceProvider::class,

debugger in laravel -

if (env('APP_DEBUG')) {
 $app->register(Barryvdh\Debugbar\LumenServiceProvider::class);
}

Comments

Submit
0 Comments